package com.xiaofeixia.sj.controller;

import cn.hutool.core.lang.Console;
import cn.hutool.json.JSON;
import com.xiaofeixia.sj.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class UserController {

    @Autowired
    @Qualifier("userService")
    private UserService userService;


    @RequestMapping("UserLogin")
    public cn.hutool.json.JSON UserLogin(){
        System.out.println("进入UserLogin");
        JSON json = userService.UserLogin("1","1");

        return json;
    }
}
